//
//  WriteDescriptorAction.swift
//  Clock
//
//  Created by 方强 on 16/7/4.
//  Copyright © 2016年 MT. All rights reserved.
//

import UIKit
import CoreBluetooth

public class WriteDescriptorAction: BLEBaseAction {
    private var descriptor:CBDescriptor?;
    private var data:Data?;
    
    public init(descriptor:CBDescriptor?, data:Data?, option:BLEBaseAction_ActionOption!) {
        super.init(type: BLEBaseAction_ActionType.READDESCRIPTOR, option: option);
        self.descriptor = descriptor;
        self.data = data;
    }
    
    public func getDescriptor() -> CBDescriptor?{
        return descriptor;
    }
    
    public func getData() -> Data?{
        return data;
    }
}
